home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / QuickDraw / TranslateRotate / Translate Rotate readme next >
Encoding:
Text File  |  1992-07-15  |  703 b   |  16 lines  |  [TEXT/ttxt]

  1. TranslateRotate
  2.  
  3.     Many people are uncomfortable with Apple's fixed-point data types,
  4.     because they can't be used with normal operator arithmetic and
  5.     because their representation is not easily readable (though it
  6.     is easily converted to integer types).  Here's something to show
  7.     how simple it really is.
  8.     
  9.     TranslateRotate does two-dimensional translation and rotations
  10.     in word-size coordinates, using fixed-point math.  Each routine
  11.     is passed info for a transform matrix which tells the routine what
  12.     to do with the fPoint argument.  Each routine then does its thing
  13.     on its fPoint argument, returning the new fPoint position.
  14. ======================================================================
  15.  
  16.